export const tableOption = {
    border: true,
    stripe: true,
    menuAlign: 'center',
    index: true,
    indexLabel: '序号',
    dialogCustomClass: 'dialog-avue',
    align: 'center',
    searchMenuSpan: 6,
    searchSpan:6,
    searchEnter:true,
    labelWidth: '160',
    indexWidth: '60',
    selection: true,
    searchLabelWidth: 'auto',
  searchMenuPosition: 'left',
    column: [
        {
            type: 'input',
            label: '计划名称',
            prop: 'planName',
            overHidden: true,
            // searchLabelWidth: 110,
            search: true,
            rules: [
                {
                    required: true,
                    message: '请输入计划名称',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '设备型号',
            prop: 'deviceName',
            overHidden: true,
            // searchLabelWidth: 110,
            search: true,
            rules: [
                {
                    required: true,
                    message: '请输入设备型号',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '设备编码',
            hide: true,
            prop: 'deviceCode',
            addDisabled: true,
            editDisabled: true,
            overHidden: true,
            searchLabelWidth: 110,
            rules: [
                {
                    required: true,
                    message: '请输入设备编码',
                    trigger: 'blur'
                }
            ]
        },
        {
            label: '设备保养模版名称',
            hide: true,
            prop: 'maintenanceTemplateName',
            overHidden: true,
            rules: [
                {
                    required: true,
                    message: '请输入维修模版名称',
                    trigger: 'blur'
                }
            ]
        },

        {
            type: 'input',
            label: '型号名称',
            prop: 'modelName',
            search: true,
            overHidden: true,
            addDisabled: true,
            editDisabled: true,
            rules: [
                {
                    required: true,
                    message: '请输入型号名称',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '生产厂家',
            prop: 'produceFactory',
            hide: true,
        },
        {
            type: 'input',
            label: '型号编码',
            prop: 'modelCode',
            addDisabled: true,
            editDisabled: true,
            hide:true,
            rules: [
                {
                    required: true,
                    message: '请输入型号编码',
                    trigger: 'blur'
                }
            ]
        },

        {
            type: 'input',
            label: '保养负责人',
            prop: 'headInterior',
            overHidden: true,
            hide: true,
            rules: [
                {
                    required: true,
                    message: '请输入内部负责人',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '保养负责人电话',
            prop: 'headPhone',
            overHidden: true,
            hide: true,
        },
        {
            type: 'input',
            label: '保养单位',
            prop: 'maintenanceUnit',
            hide: true,

        },
        {
            type: 'input',
            label: '保养人',
            hide: true,
            prop: 'maintenancePeople',
        },
        {
            type: 'input',
            label: '保养人电话',
            hide: true,
            prop: 'maintenancePeoplePhone',
        },
        {
            label: '保养区域',
            prop: 'areaCode',
            span: 24,
            hide: true,
            rules: [
                {
                    required: true,
                    message: '请输入维修区域',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'radio',
            label: '是否自动生成工单',
            hide: true,
            prop: 'planFlag',
            dicData: [{
                label: '是',
                value: '0'
            }, {
                label: '否',
                value: '1'
            }]
        },
        {
            type: 'radio',
            label: '是否短信通知',
            hide: true,
            prop: 'updateTime123',
            dicData: [{
                label: '是',
                value: '0'
            }, {
                label: '否',
                value: '1'
            }]
        },
        {
            label: '知识库',
            hide: true,
            span: 24,
            prop: 'repository',
        },
        {
            type: 'select',
            label: '计划类型',
            clearable: false,
            prop: 'planType',
            props: {
                label: 'label',
                value: 'value'
            },
            dicData: [
                {
                    label: '定期计划',
                    value: '0'
                }, {
                    label: '临期计划',
                    value: '1'
                }
            ]
        },
        {
            type: 'radio',
            label: '计划状态',
            prop: 'planStatus',
            dicData: [{
                label: '启用',
                value: '0'
            }, {
                label: '停用',
                value: '1'
            }]
        },
        {
            label: '计划时间',
            prop: 'time123',
            hide: true,
            span: 24,
        },
        {
            label: '执行时间',
            prop: 'excuteDate',
            addDisplay: false,
            editDisplay: false,
        },
        {
            label: '创建时间',
            prop: 'createTime',
            addDisplay: false,
            editDisplay: false,
        },
        {
            label: '更新时间',
            prop: 'updateTime',
            addDisplay: false,
            editDisplay: false,
        },
    ]
}
